import request from '@/utils/request';

// 获取推荐书籍列表
export function getRecommendedBooks() {
  return request({
    url: '/books/recommended',
    method: 'get',
  });
}

// 获取书籍详情
export function getBookDetail(id) {
  return request({
    url: `/books/${id}`,
    method: 'get',
  });
}

// 获取章节内容
export function getChapterContent(bookId, chapterId) {
  return request({
    url: `/books/${bookId}/chapter/${chapterId}`,
    method: 'get',
  });
}